package util;

import java.io.File;
import java.util.ArrayList;

import pojo.NguoiDungPOJO;

public class Common {
	public static ArrayList<String> retrieveRegId(ArrayList<NguoiDungPOJO> lstNguoiDung){
		ArrayList<String> lstRegId=new ArrayList<String>();
		for(NguoiDungPOJO nd:lstNguoiDung){
			lstRegId.add(nd.getDeviceID());
		}
		return lstRegId;
	}
	public static boolean delFile(String path){
		File f=new File(path);
		if(f.isFile()){
			return f.delete();
		}
		return false;
	}
}
